<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Objectfile
 *
 * @ORM\Table(name="ObjectFile")
 * @ORM\Entity
 */
class Objectfile
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var File
     *
     * @ORM\ManyToOne(targetEntity="File")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="file_id", referencedColumnName="id")
     * })
     */
    private $file;

    /**
     * @var Object
     *
     * @ORM\ManyToOne(targetEntity="Object")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="object_id", referencedColumnName="id")
     * })
     */
    private $object;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set file
     *
     * @param Luka\StoreBundle\Entity\File $file
     */
    public function setFile(\Luka\StoreBundle\Entity\File $file)
    {
        $this->file = $file;
    }

    /**
     * Get file
     *
     * @return Luka\StoreBundle\Entity\File 
     */
    public function getFile()
    {
        return $this->file;
    }

    /**
     * Set object
     *
     * @param Luka\StoreBundle\Entity\Object $object
     */
    public function setObject(\Luka\StoreBundle\Entity\Object $object)
    {
        $this->object = $object;
    }

    /**
     * Get object
     *
     * @return Luka\StoreBundle\Entity\Object 
     */
    public function getObject()
    {
        return $this->object;
    }
}